package com.project.mapper;

import com.project.bean.OrderBean;
import com.project.bean.OrderInfoBean;
import com.project.bean.ShopBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * 订单mapper接口
 */
public interface IOrderMapper {
    /***
     * 添加订单
     * @param order 订单对象
     */
    public void addOrder(OrderBean order);

    /**
     * 添加订单明细
     * @param orderId 订单ID
     * @param shopList 订单明细集合
     */
    public void addOrderInfo(@Param("orderId") int orderId,@Param("shopList") Collection<ShopBean> shopList);
}
